package cn.edu.sasu.mapper;



import cn.edu.sasu.domain.entity.SysDoctor;
import cn.edu.sasu.domain.entity.SysHospital;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


public interface SysDoctorMapper {
    Integer countDoctors(Integer deleteFlagYes);

    List<SysDoctor> doctorList(@Param("deleteFlag") Integer deleteFlag, @Param("offset") Integer offset, @Param("rows") Integer rows);

    List<SysDoctor> getAllDoctor(@Param("deleteFlag") Integer deleteFlag);

    void updateSysDoctorDeleteFlagByDoctorId(@Param("doctorId")Integer doctorId,@Param("deleteFlagYes") Integer deleteFlagYes);

    void updateSysDoctorDeleteFlagByDoctorIds(@Param("ids") List<Integer> ids,@Param("deleteFlagYes") Integer deleteFlagYes);
    List<SysHospital> searchSysDoctorList(@Param("deleteFlagYes")Integer deleteFlagYes, @Param("offset")Integer offset,@Param("rows") Integer rows,@Param("doctorName") String doctorName,@Param("professional") String professional,@Param("hospitalId") Integer hospitalId,@Param("status") Byte status);

    Integer countSearchSysDoctor(@Param("deleteFlagYes") Integer deleteFlagYes,@Param("doctorName") String doctorName,@Param("professional") String professional,@Param("hospitalId") Integer hospitalId,@Param("status") Byte status);

    SysDoctor findSysDoctorMapperByDoctorName(@Param("doctorName")  String doctorName);

    void update(SysDoctor sysDoctor);

    void save(SysDoctor sysDoctor);

    List<SysDoctor> getHospitalDoctor(Integer hospitalId);

    List<SysDoctor> getHistorysDoctor(@Param("ids") List<Integer> ids);

    List<SysDoctor> findAll();
}




